<template>
  <div>
<!--场景：父组件中显示/隐藏子组件 子组件绑定v-model   -->
<!-- 默认情况下，一个组件上的 v-model 会把 value 用作 prop , 且把 input 用作 event，   -->
    <children v-model="showFlag" v-if="showFlag"></children>
    <button @click="showFlag=true">打开组件</button>


  </div>
</template>
<script>
import Children from "@/components/elementuiTableTree/children";
export default {
  name: 'elementui-table',
  components: {Children},
  data() {
    return {
      showFlag:false ,
    }
  },
  watch: {},
  methods: {},
};
</script>

<style lang="less">
</style>